//
//  HHomeCollectionViewCell.m
//  Router
//
//  Created by Zhen Huang on 2018/7/4.
//  Copyright © 2018年 James. All rights reserved.
//

#import "HHomeCollectionViewCell.h"

@implementation HHomeCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUpLayout];
    }
    return self;
}

- (void)setUpLayout {
    
    self.IconImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 20, 20)];
    self.commentLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.IconImage.right + 5, 10, 200, 20)];
    self.commentLabel.centerY = self.IconImage.centerY;
    self.commentLabel.textColor = kTitleBackGroundColor;
    self.numberLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.IconImage.right + 5, self.commentLabel.bottom + 20, 200, 30)];
    self.numberLabel.centerY = self.contentView.centerY + 10;
    self.numberLabel.font = [UIFont fontWithName:PingFangSCMedium size:30];
    self.numberLabel.textColor = kTextColor;
    [self.contentView addSubview:self.IconImage];
    [self.contentView addSubview:self.commentLabel];
    [self.contentView addSubview:self.numberLabel];
}
- (void)setRouterModel:(HRouterModel *)routerModel {
    
}
@end
